Skip to content

Watch domain registration and website security - #143

Merged
Darknode-Official merged 1 commit into
mainfrom
feat/watch-more
Nov 28, 2026
Merged

Darknode-Official merged 1 commit into
mainfrom
feat/watch-more

Conversation

@Darknode-Official

Copy link
Copy Markdown
Owner

Two new monitor types, both included in the Free plan's one-domain watch, so a solo dev or a small company finds out before:

  • the domain registration lapses;
  • the site loses a security header;
  • the site starts serving its .git or .env.

What changed

  • worker/checks.js:
    • domain-expiry reads the registry's RDAP record (IANA bootstrap) and flags:
      • expiry inside the warn window (30 days by default);
      • a lapsed or unregistered domain;
      • a pending transfer;
      • the transfer lock turned off (gTLDs only; many ccTLD registries have no lock).
    • web-posture grades HTTPS, the HTTP redirect, HSTS, CSP, clickjacking, nosniff and cookie flags, using the same posture engine as the browser tool.
      • It probes /.git/HEAD and /.env and recognises them from their first 2 KB. File contents are never stored.
      • Private hosts are refused through net-guard.
  • worker/monitor.js:
    • Both new types join email-posture as drift types. After a domain's first answered run, a new or weaker finding alerts whatever its severity.
    • Registration baselines use the registrable domain.
  • worker/alert-email.js: what / why / fix copy for both.
  • worker/free-watch.js: the Free watch allows the two new types, still on one domain.
  • Deck Monitors:
    • new "Add domain registration watch" and "Add website watch" forms;
    • an existing Free watch shows Add the other checks;
    • "Watch this domain" after a domain check now sets up all four checks.
  • Copy updated in docs (FAQ, privacy, changelog), landing pricing, Plans, JSON-LD and the Monitors help.
  • No TOS bump:
    • Section 14 already covers what monitors store.
    • Sections 1 and 11 already require authorisation.
    • The docs FAQ adds "watch only sites you own or are allowed to check".

Verified

  • npm test: 5203 passed, including 25 new tests.
  • Real-network run from Node:
    • RDAP for darknode.ai, github.com and bbc.co.uk parsed correctly;
    • example.com gave 5 website findings;
    • darknode.ai was clean.
  • Staging Worker, with a throwaway verified Free account:
    • all four types were accepted on one domain, and a second domain got 402;
    • the runs completed with no alert sent on the baseline run;
    • the account was then deleted through /api/account/delete.
  • Browser, local build against staging, Free account:
    • the website watch form and save worked;
    • "Add the other checks" took the watch to four monitors, and the first run started by itself;
    • checked at desktop and 390px.

Two new server-side monitor types, both part of the Free one-domain watch:

- domain-expiry: reads the registry's RDAP record (IANA bootstrap). Alerts
  before the registration expires (30 days by default), when it has lapsed
  or is not registered, when a transfer is pending, and when the transfer
  lock is off (gTLDs only). Subdomains are graded by their registrable domain.
- web-posture: HTTPS and the HTTP redirect, HSTS, CSP, clickjacking, nosniff
  and cookie flags (same posture engine as the browser tool), plus an exposed
  /.git/HEAD or /.env, recognised from the first 2 KB and never stored.

Once a domain has a baseline, a weaker header or registration alerts as
drift. A watch set up before this gets an "Add the other checks" button
under Monitors. Docs, Plans, landing and help copy updated.
@Darknode-Official
Darknode-Official merged commit f6c719a into main Nov 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant